package mockup;

/**
 * Holds information about a user.
 * @author Erik
 * @author daniel
 *
 */
public class UserMockup extends Mockup implements Comparable<UserMockup> {

	private String name;
	private long dateOfBirth;
	private String email;
	private String phone;
	private String department;

	public UserMockup(int id, String name, long birth,
			String email, String phone , String department) {
		super(id);
		this.name = name;
		this.dateOfBirth = birth;
		this.email = email;
		this.phone = phone;
		this.department = department;		
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public long getDateOfBirth() {
		return dateOfBirth;
	}

	public void setDateOfBirth(long dateOfBirth) {
		this.dateOfBirth = dateOfBirth;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getDepartment() {
		return department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public String toString(){
		return getName()+" <"+getEmail()+"> ";
	}

	@Override
	public int compareTo(UserMockup o) {
		return name.compareTo(o.name);
	}
}	

